feat(ci): add previous review comment handling to code review#4
feat(ci): add previous review comment handling to code review#4
Conversation
- 🔧 Handle previous claude[bot] inline comments on `synchronize` events to avoid duplicate comments on already-fixed issues - 🔧 Auto-resolve fixed comment threads via GraphQL - 🔧 Bump `--max-turns` from 5 to 10 for processing previous comments Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the reusable Code Review GitHub Actions workflow to let the review agent find, respond to, and resolve its own prior inline review comments before generating new ones, reducing duplicate feedback across review iterations.
Changes:
- Added prompt instructions for fetching previous inline comments, checking current code, and replying based on fix status.
- Added GraphQL-based thread resolution guidance for issues marked fixed.
- Increased the Claude action
--max-turnsfrom 5 to 10 to support the additional operations.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ba82c7268f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- paginate REST comment fetch and exclude reply comments (`in_reply_to_id == null`) to avoid reprocessing bot's own replies - paginate GraphQL thread lookup and fetch all comments per thread (`first:100`) for reliable `databaseId` matching - add `GH_TOKEN` env to `claude-code-action` step so `gh api` calls are authenticated Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Changes
Impact
Enables the code review bot to better track and manage its own feedback across multiple review cycles, reducing duplicate comments and improving overall review efficiency.